#include "StdAfx.h"
#include "TP_map.h"

static int __TP_mouse_x;
static int __TP_mouse_y;
static int __TP_mouse_down;

void TP_Init( void )
{
}

BOOL TP_GetUserInfo( TPCalibrateParam* calibrate )
{
	return TRUE;
}

void TP_SetCalibrateParam( const TPCalibrateParam * param )
{
}

u32 TP_RequestRawSampling( TPData * result )
{
	return 0;
}

void TP_GetCalibratedPoint( TPData * disp, const TPData * raw )
{
	disp->x = __TP_mouse_x;
	disp->y = __TP_mouse_y;
	disp->touch = __TP_mouse_down;
	disp->validity = TP_VALIDITY_VALID;
}

void __TP_setData(int x, int y, int press)
{
	__TP_mouse_x = x;
	__TP_mouse_y = y;
	__TP_mouse_down = press;
}
